<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" />
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>%@ Page language="c#" Codebehind="<xsl:value-of select="Schema/@TableName" />List.aspx.cs" AutoEventWireup="false" Inherits="<xsl:value-of select="Schema/@NameSpace" />.<xsl:value-of select="Schema/@TableName" />List" %<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
<HTML>
	<HEAD>
		<title><xsl:value-of select="Schema/@TableName" />List</title>
		<meta name="GENERATOR" Content="ESpace.DalTool">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="/css/style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="FlowLayout" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" method="post" runat="server">
			<div align="center">
				共<asp:Label id="lblRecordCount" runat="server" ForeColor="Red"></asp:Label>条记录，分
				<asp:Label id="lblPageCount" runat="server" ForeColor="Red"></asp:Label>页显示，每页显示
				<asp:TextBox id="txtPageSize" runat="server" Width="32px" CssClass="textboxmoney">20</asp:TextBox>
				<asp:RangeValidator id="RangeValidator1" runat="server" ErrorMessage="非法的每页显示数量" Type="Integer" MinimumValue="0"
					MaximumValue="100000000" Display="None" ControlToValidate="txtPageSize" EnableViewState="False">*</asp:RangeValidator>条，当前为
				<asp:textbox id="txtCurrentPage" runat="server" Width="32px" CssClass="textboxmoney">1</asp:textbox>
				<asp:RangeValidator id="RangeValidator2" runat="server" ErrorMessage="非法的页码" Type="Integer" MinimumValue="0"
					MaximumValue="100000000" Display="None" ControlToValidate="txtCurrentPage" EnableViewState="False">*</asp:RangeValidator>页
				<asp:button id="btnGo" runat="server" Text="Go..." EnableViewState="False"></asp:button>
				<asp:Button id="btnAdd" runat="server" Text="新增" EnableViewState="False"></asp:Button>
				<asp:ValidationSummary id="pageValidation" runat="server" ShowSummary="False" ShowMessageBox="True" EnableViewState="False"></asp:ValidationSummary>
				<xsl:text disable-output-escaping="yes">&lt;</xsl:text>asp:datagrid id="dgResult" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False"
					CssClass="CssDataGrid" CellPadding="5"<xsl:text disable-output-escaping="yes">&lt;</xsl:text>
					<SelectedItemStyle CssClass="CssDGSelectItem"></SelectedItemStyle>
					<EditItemStyle CssClass="CssDGEditItem"></EditItemStyle>
					<AlternatingItemStyle CssClass="CssDGAltItem"></AlternatingItemStyle>
					<ItemStyle CssClass="CssDGItem"></ItemStyle>
					<HeaderStyle CssClass="CssDGHeader"></HeaderStyle>
					<FooterStyle CssClass="CssDGFooter"></FooterStyle>
					<Columns>
						<asp:BoundColumn DataField="DisplayName" SortExpression="DisplayName" HeaderText="字典名称"></asp:BoundColumn>
						<asp:BoundColumn DataField="DictionaryValue" SortExpression="DictionaryValue" HeaderText="字典值"></asp:BoundColumn>
						<asp:BoundColumn DataField="CreateTime" SortExpression="CreateTime" HeaderText="创建时间"></asp:BoundColumn>
						<asp:BoundColumn DataField="Memo" SortExpression="Memo" HeaderText="说明">
							<HeaderStyle Width="120px"></HeaderStyle>
						</asp:BoundColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:LinkButton id=btnModify runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"DicID") %>' CommandName="Edit">编辑</asp:LinkButton>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:LinkButton id=btnDelete runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"DicID") %>' CommandName="Delete">删除</asp:LinkButton>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Center" CssClass="CssDGPager"></PagerStyle>
				<xsl:text disable-output-escaping="yes">&lt;</xsl:text>/asp:datagrid<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
			</div>
		</form>
	</body>
</HTML>
</xsl:template>
</xsl:stylesheet>